package com.javaapi.mvc;

import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;

import org.xml.sax.InputSource;

public class TestLogIn {

	public static void main(String[] args) throws IOException {
		String userName, pwd;
		LogIn logIn = new LogIn();
		User user = new User();

		// Scanner scanner=new Scanner(System.in);
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		System.out.println("input username:");
		userName = br.readLine();
		user.setUserName(userName);

		System.out.println("input password: ");
		pwd = br.readLine();
		user.setPwd(pwd);

		if (logIn.login(user)) {
			System.out.println("login successs");
		}
		System.exit(1);
	}
}
